﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoGenTool.Core;
using AutoGenTool.Helpers;

namespace AutoGenTool
{
    public class MyProcessor : Processor
    {
        public MyProcessor(AutoGenConfig config) : base("Test", config)
        {

        }

        public override void GenerateClass(ClassInfoContext context)
        {
            Console.WriteLine(context);
            Console.WriteLine(CodeGenerateHelper.CreateUsingsBlock(context.Namespaces));
            CreateGenCode("Test/hello.cs","// 测试文件");
        }

        public override void GenerateMethod(MethodInfoContext context)
        {
            Console.WriteLine(context);
        }
    }
}
